Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parsec API refactor #743

Merged
merged 5 commits into from
Aug 11, 2021
Merged

Conversation

emmabastas
Copy link
Contributor

@emmabastas emmabastas commented Jul 13, 2021

A refactoring of the parsec-like API, including the "documentation" in new-parser-2021-notes.md

Parsec-like API refactor

All of the modules providing the parsec-like API are merged into one single module. I.e. all functions found in Text.* are moved into Parse.ParsecAdapter. This means that all modules using the parsec-like API have had import statements changed resulting in the large file change count for this PR.

"Documentation" refactor

Notes found in new-parser-2021-notes.md which have been taken during the course of the parsec-like API work have been moved to more appropriate places, like source code comments and a Github issue, and the document has been removed.

Behavioral changes

The only change to the behavior of the parsec-like API can be found in bc58b34, a minor fix to the error message of a function.

Other refactorings

Parse.Helpers.failure has been re-implemented without the use of getInput and setInput, so that they can be removed from the API. This functions was re-implemented in elm/compiler at one point as well: https://github.com/elm/compiler/blob/9f6c60cec62a21f8eb205949f7a7115b60fd5832/src/Parse/Primitives.hs#L100

@emmabastas emmabastas marked this pull request as ready for review July 17, 2021 14:19
@avh4 avh4 merged commit f98fd08 into avh4:new-parser-2021 Aug 11, 2021
kutyel pushed a commit to kutyel/elm-format that referenced this pull request Apr 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants